#!/usr/bin/env bash
pid=$(jps | grep inspect-line-2.0.jar | awk '{print $1}')
[[ -n ${pid} ]] && kill -15 "${pid}"
# shellcheck disable=SC2046
[[ -e /home/inspect-line/inspect-line-2.0.log ]] && cp /home/inspect-line/inspect-line-2.0.log /home/inspect-line/history-log/inspect-line-2.0-$(date +%Y-%m-%d_%H:%M:%S).log
